package com.aatrox.bhsypro.service.impl;

import com.aatrox.bhsypro.dao.BScolumnDao;
import com.aatrox.bhsypro.entity.BScolumn;
import com.aatrox.bhsypro.service.BScolumnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class BScolumnServiceImpl implements BScolumnService {

    @Autowired
    BScolumnDao bsd;

    @Override
    public void insertNewZl(BScolumn bs) {
        bsd.insertNewZl(bs);
    }

    @Override
    public BScolumn selScolumn(HashMap hm) {
        BScolumn bs = bsd.selScolumn(hm);
        return bs;
    }

    @Override
    public List<BScolumn> selallScolum() {
        List<BScolumn> list = bsd.selallScolum();
        return list;
    }

    @Override
    public List selScolumby10() {
        List list =bsd.selScolumby10();
        return list;
    }

    @Override
    public List selallbystay(String stay) {
        List list=bsd.selallbystay(stay);
        return list;
    }

    @Override
    public List selbysname(String sname) {
        List list=bsd.selbysname(sname);
        return list;
    }

    @Override
    public int upbysid(int sid) {
        int i=bsd.upbysid(sid);
        return i;
    }
}
